Yaan AI for API
Yaan AI for API is an AI-powered engine within DevAssure that allows teams to quickly import API specifications (from Postman Collections or Swagger/OpenAPI JSON files) and automatically generate:
- API definitions.
- Test cases, grouped by API and endpoint including validations for headers, query params, and boundary conditions.
- Test data for execution.
This accelerates API quality checks by eliminating manual setup and enabling instant coverage with schema validation and parameterized testing.
Yaan AI for API, available under the API menu in the side navigation, streamlines API testing by shifting from manual test creation to AI-powered auto-generation.
API Definition Creation
Once an API specifications is provided, Yaan AI processes it and creates individual API files within the project.
Example : Using the Postman collection : SignNow API Collection
From this single imported JSON file, Yaan AI creates files such as:
-
document.api -
document_group.api -
oauth2_userauth.api
Each .api file contains multiple endpoints with structured details such as:
-
Endpoint URL
GET https://api.example.com/document/${document_id}/downloadGET https://api.example.com/v2/documents/${document_id}/brand
-
Parameters
- Path Parameters (e.g.,
document_id) - Query Parameters (e.g.,
use_hierarchy) - Headers (e.g.,
Authorization,Content-Type) - Request Body (if applicable)
- Path Parameters (e.g.,
-
Authorization
- APIs are linked to authorization profiles (e.g.,
authorise.auth).
- APIs are linked to authorization profiles (e.g.,
Example - Generated API Definitions
downloadDocumentGET https://api.example.com/document/${document_id}/download- Params:
document_id(string),access_token(string) - Test Coverage Created:
- ✅ Response Schema Validation Test
- ✅ Header Validation (missing/invalid
Authorization)
Auto-Generated Test Cases
Yaan AI automatically generates test cases for each API endpoint. These test cases appear under the TEST CASES menu in the left navigation, grouped by API and endpoint.